package org.zfes.snowier.zbss.xzy.biz.vedio.model;
import org.zfes.snowier.core.data.IBaseModel;
public class CloudImage extends IBaseModel{

	private static final long serialVersionUID = 1L;
	
	public CloudImage() {}
	public CloudImage(Long id) {
		this.setId(id);
	}
	//<-------------------------------------------->
	  private java.lang.Long deviceId;
 
	@javax.validation.constraints.NotBlank(message="设备编号不能为空")
	@javax.validation.constraints.NotNull(message="设备编号不能为空")
	@org.hibernate.validator.constraints.Length(min=0,max=60,message="设备编号长度不能大于60")
	  private java.lang.String deviceNum;
	@javax.validation.constraints.NotNull(message="所属消息不能为空")
	  private java.lang.Long messageId;
	@org.hibernate.validator.constraints.Length(min=0,max=80,message="腾讯云请求ID长度不能大于80")
	  private java.lang.String requestId;
 
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="腾讯云文件ID长度不能大于100")
	  private java.lang.String fileId;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="腾讯云文件ID长度不能大于100")
	  private java.lang.String fileName;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="本地文件路径长度不能大于100")
	  private java.lang.String localFilePath;
	@org.hibernate.validator.constraints.Length(min=0,max=100,message="备注长度不能大于100")
	  private java.lang.String remark;
	  private java.lang.Byte status;
	  private java.lang.Byte uploadStatus;
	  private java.util.Date createTime;
	  private java.util.Date updateTime;
	  private java.util.Date deleteTime;
	  private java.lang.Integer retryTimes;
 
	@org.hibernate.validator.constraints.Length(min=0,max=255,message="上传失败原因长度不能大于255")
	  private java.lang.String uploadErrorMsg;
	@org.hibernate.validator.constraints.Length(min=0,max=40,message="上传失败原因长度不能大于40")
	  private java.lang.String uploadErrorCode;
 
	
	public CloudImage(String deviceNum, Long messageId) {
		super();
		this.deviceNum = deviceNum;
		this.messageId = messageId;
	}
	//<-------------------------------------------->
	public CloudImage setDeviceId(java.lang.Long deviceId){
	 this.deviceId=deviceId;
	 return this;
	}
	public java.lang.Long getDeviceId(){
		return this.deviceId;
	}
	public CloudImage setDeviceNum(java.lang.String deviceNum){
		this.deviceNum=deviceNum==null?null:deviceNum.trim();
	 return this;
	}
	public java.lang.String getDeviceNum(){
		return this.deviceNum;
	}
	public CloudImage setMessageId(java.lang.Long messageId){
	 this.messageId=messageId;
	 return this;
	}
	public java.lang.Long getMessageId(){
		return this.messageId;
	}
	public CloudImage setRequestId(java.lang.String requestId){
		this.requestId=requestId==null?null:requestId.trim();
	 return this;
	}
	public java.lang.String getRequestId(){
		return this.requestId;
	}
	public CloudImage setFileId(java.lang.String fileId){
		this.fileId=fileId==null?null:fileId.trim();
	 return this;
	}
	public java.lang.String getFileId(){
		return this.fileId;
	}
	public CloudImage setFileName(java.lang.String fileName){
		this.fileName=fileName==null?null:fileName.trim();
	 return this;
	}
	public java.lang.String getFileName(){
		return this.fileName;
	}
	public CloudImage setLocalFilePath(java.lang.String localFilePath){
		this.localFilePath=localFilePath==null?null:localFilePath.trim();
	 return this;
	}
	public java.lang.String getLocalFilePath(){
		return this.localFilePath;
	}
	public CloudImage setRemark(java.lang.String remark){
		this.remark=remark==null?null:remark.trim();
	 return this;
	}
	public java.lang.String getRemark(){
		return this.remark;
	}
	public CloudImage setStatus(java.lang.Byte status){
	 this.status=status;
	 return this;
	}
	public java.lang.Byte getStatus(){
		return this.status;
	}
	public CloudImage setUploadStatus(java.lang.Byte uploadStatus){
	 this.uploadStatus=uploadStatus;
	 return this;
	}
	public java.lang.Byte getUploadStatus(){
		return this.uploadStatus;
	}
	public CloudImage setCreateTime(java.util.Date createTime){
	 this.createTime=createTime;
	 return this;
	}
	public java.util.Date getCreateTime(){
		return this.createTime;
	}
	public CloudImage setUpdateTime(java.util.Date updateTime){
	 this.updateTime=updateTime;
	 return this;
	}
	public java.util.Date getUpdateTime(){
		return this.updateTime;
	}
	public CloudImage setRetryTimes(java.lang.Integer retryTimes){
	 this.retryTimes=retryTimes;
	 return this;
	}
	public java.lang.Integer getRetryTimes(){
		return this.retryTimes;
	}
	public CloudImage setUploadErrorMsg(java.lang.String uploadErrorMsg){
		this.uploadErrorMsg=uploadErrorMsg==null?null:uploadErrorMsg.trim();
	 return this;
	}
	public java.lang.String getUploadErrorMsg(){
		return this.uploadErrorMsg;
	}
	public CloudImage setUploadErrorCode(java.lang.String uploadErrorCode){
		this.uploadErrorCode=uploadErrorCode==null?null:uploadErrorCode.trim();
	 return this;
	}
	public java.lang.String getUploadErrorCode(){
		return this.uploadErrorCode;
	}
	public java.util.Date getDeleteTime() {
		return deleteTime;
	}
	public void setDeleteTime(java.util.Date deleteTime) {
		this.deleteTime = deleteTime;
	}
	@Override
	public String toString() {
		return "CloudImage [deviceId=" + deviceId + ", deviceNum=" + deviceNum + ", messageId=" + messageId
				+ ", requestId=" + requestId + ", fileId=" + fileId + ", fileName=" + fileName + ", localFilePath="
				+ localFilePath + ", remark=" + remark + ", status=" + status + ", uploadStatus=" + uploadStatus
				+ ", createTime=" + createTime + ", updateTime=" + updateTime + ", deleteTime=" + deleteTime
				+ ", retryTimes=" + retryTimes + ", uploadErrorMsg=" + uploadErrorMsg + ", uploadErrorCode="
				+ uploadErrorCode + "]";
	}

}
